<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Java API Reference for Android: com.juphoon.cloud.JCMediaChannel.JoinParam Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Java API Reference for Android
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>com</b></li><li class="navelem"><b>juphoon</b></li><li class="navelem"><b>cloud</b></li><li class="navelem"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel.html">JCMediaChannel</a></li><li class="navelem"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html">JoinParam</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">com.juphoon.cloud.JCMediaChannel.JoinParam Class Reference<div class="ingroups"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html">媒体频道模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a8488adfb85d2d944a93acd2530598bd3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#a8488adfb85d2d944a93acd2530598bd3">capacity</a> = 16</td></tr>
<tr class="separator:a8488adfb85d2d944a93acd2530598bd3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea56df7ea4d846fa04d855a036c2c8f8"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#aea56df7ea4d846fa04d855a036c2c8f8">cdn</a> = null</td></tr>
<tr class="separator:aea56df7ea4d846fa04d855a036c2c8f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a014bf4749336a5ea045efbaead494d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_record_param.html">RecordParam</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#a9a014bf4749336a5ea045efbaead494d">record</a> = null</td></tr>
<tr class="separator:a9a014bf4749336a5ea045efbaead494d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a64a370e1b4a6d7a14bd7121cc1bf740a"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#a64a370e1b4a6d7a14bd7121cc1bf740a">password</a> = &quot;123456&quot;</td></tr>
<tr class="separator:a64a370e1b4a6d7a14bd7121cc1bf740a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af668c75a7943575f97a200766ffa90fa"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#af668c75a7943575f97a200766ffa90fa">smooth</a> = true</td></tr>
<tr class="separator:af668c75a7943575f97a200766ffa90fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc261213ba21145a8965ab1eeab69d23"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#adc261213ba21145a8965ab1eeab69d23">maxResolution</a> = <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel.html#ab46c1586bed46b97c7ea3012928d0a7c">MAX_RESOLUTION_360p</a></td></tr>
<tr class="separator:adc261213ba21145a8965ab1eeab69d23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a550afcc7862b75518584a1696c7befd2"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#a550afcc7862b75518584a1696c7befd2">uriMode</a> = false</td></tr>
<tr class="separator:a550afcc7862b75518584a1696c7befd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a136e728d93850aff02f1bbc8b09a29c7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#a136e728d93850aff02f1bbc8b09a29c7">heartbeatTime</a> = 20</td></tr>
<tr class="separator:a136e728d93850aff02f1bbc8b09a29c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab58544bdd9e9fe15465a0e666c83e05c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#ab58544bdd9e9fe15465a0e666c83e05c">heartbeatTimeout</a> = 60</td></tr>
<tr class="separator:ab58544bdd9e9fe15465a0e666c83e05c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6996c84657a694aaa424a11e3e99e300"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#a6996c84657a694aaa424a11e3e99e300">framerate</a> = 24</td></tr>
<tr class="separator:a6996c84657a694aaa424a11e3e99e300"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afacad13018193c6f037a9c39adacfd32"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#afacad13018193c6f037a9c39adacfd32">customProperty</a> = &quot;&quot;</td></tr>
<tr class="separator:afacad13018193c6f037a9c39adacfd32"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a442077645c77246d0b8cfabff7429530"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#a442077645c77246d0b8cfabff7429530">customVideoResolution</a> = &quot;&quot;</td></tr>
<tr class="separator:a442077645c77246d0b8cfabff7429530"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2ed8db0b776f554d383cddde3330e9be"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_join_param.html#a2ed8db0b776f554d383cddde3330e9be">videoRatio</a> = 1.78f</td></tr>
<tr class="separator:a2ed8db0b776f554d383cddde3330e9be"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>加入参数，第一个加入者有效, 作为 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel.html#ad8914349661b483beb573152f63023b8">join</a> 方法最后一个参数的入参 </p>
</div><h2 class="groupheader">Member Data Documentation</h2>
<a id="a8488adfb85d2d944a93acd2530598bd3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8488adfb85d2d944a93acd2530598bd3">&#9670;&nbsp;</a></span>capacity</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int com.juphoon.cloud.JCMediaChannel.JoinParam.capacity = 16</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>会议最大人数，默认值为 16 </p>

</div>
</div>
<a id="aea56df7ea4d846fa04d855a036c2c8f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea56df7ea4d846fa04d855a036c2c8f8">&#9670;&nbsp;</a></span>cdn</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String com.juphoon.cloud.JCMediaChannel.JoinParam.cdn = null</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>推流参数，默认为 null</p>
<p>如果用户在加入会议时没有设置推流参数，就无法进行推流 </p>

</div>
</div>
<a id="a9a014bf4749336a5ea045efbaead494d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9a014bf4749336a5ea045efbaead494d">&#9670;&nbsp;</a></span>record</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel_1_1_record_param.html">RecordParam</a> com.juphoon.cloud.JCMediaChannel.JoinParam.record = null</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>录制参数，默认为为 null</p>
<p>如果用户在加入会议时没有设置录制参数，就无法进行视频录制 </p>

</div>
</div>
<a id="a64a370e1b4a6d7a14bd7121cc1bf740a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a64a370e1b4a6d7a14bd7121cc1bf740a">&#9670;&nbsp;</a></span>password</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String com.juphoon.cloud.JCMediaChannel.JoinParam.password = &quot;123456&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>密码，默认为 "123456" </p>

</div>
</div>
<a id="af668c75a7943575f97a200766ffa90fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af668c75a7943575f97a200766ffa90fa">&#9670;&nbsp;</a></span>smooth</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.juphoon.cloud.JCMediaChannel.JoinParam.smooth = true</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否开启平滑模式，默认开启</p><ul>
<li>true: 开启</li>
<li>false: 不开启 </li>
</ul>

</div>
</div>
<a id="adc261213ba21145a8965ab1eeab69d23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc261213ba21145a8965ab1eeab69d23">&#9670;&nbsp;</a></span>maxResolution</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int com.juphoon.cloud.JCMediaChannel.JoinParam.maxResolution = <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel.html#ab46c1586bed46b97c7ea3012928d0a7c">MAX_RESOLUTION_360p</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>会议最大分辨率，默认为 <a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel.html#ab46c1586bed46b97c7ea3012928d0a7c">MAX_RESOLUTION_360p</a> ：</p><ul>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel.html#ab46c1586bed46b97c7ea3012928d0a7c">MAX_RESOLUTION_360p</a> : 最大分辨率 360p</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel.html#a623346acd3953cd7b3b344199ba12887">MAX_RESOLUTION_720p</a> : 最大分辨率 720p</li>
<li><a class="el" href="classcom_1_1juphoon_1_1cloud_1_1_j_c_media_channel.html#a95b4b31738363917699e8ebd6a80318c">MAX_RESOLUTION_1080p</a> : 最大分辨率 1080p </li>
</ul>

</div>
</div>
<a id="a550afcc7862b75518584a1696c7befd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a550afcc7862b75518584a1696c7befd2">&#9670;&nbsp;</a></span>uriMode</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean com.juphoon.cloud.JCMediaChannel.JoinParam.uriMode = false</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>是否开启 uri 模式, join 函数的参数为会议 uri，默认不开启</p><ul>
<li>true: 开启</li>
<li>false: 不开启 </li>
</ul>

</div>
</div>
<a id="a136e728d93850aff02f1bbc8b09a29c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a136e728d93850aff02f1bbc8b09a29c7">&#9670;&nbsp;</a></span>heartbeatTime</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int com.juphoon.cloud.JCMediaChannel.JoinParam.heartbeatTime = 20</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>心跳间隔，默认值为 20 </p>

</div>
</div>
<a id="ab58544bdd9e9fe15465a0e666c83e05c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab58544bdd9e9fe15465a0e666c83e05c">&#9670;&nbsp;</a></span>heartbeatTimeout</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int com.juphoon.cloud.JCMediaChannel.JoinParam.heartbeatTimeout = 60</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>心跳超时，默认值为 60 </p>

</div>
</div>
<a id="a6996c84657a694aaa424a11e3e99e300"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6996c84657a694aaa424a11e3e99e300">&#9670;&nbsp;</a></span>framerate</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int com.juphoon.cloud.JCMediaChannel.JoinParam.framerate = 24</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>帧率 1-30, 默认值为 24 </p>

</div>
</div>
<a id="afacad13018193c6f037a9c39adacfd32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afacad13018193c6f037a9c39adacfd32">&#9670;&nbsp;</a></span>customProperty</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String com.juphoon.cloud.JCMediaChannel.JoinParam.customProperty = &quot;&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>最大码率 自定义属性，默认为 "" </p>

</div>
</div>
<a id="a442077645c77246d0b8cfabff7429530"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a442077645c77246d0b8cfabff7429530">&#9670;&nbsp;</a></span>customVideoResolution</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String com.juphoon.cloud.JCMediaChannel.JoinParam.customVideoResolution = &quot;&quot;</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>自定义媒体每层参数，默认为 ""</p>
<ul>
<li>1、格式 高基数 第一层高倍数 第一层码率 第二层高倍数 第二层码率 第三层高倍数 第三层码率 第四层高倍数 第四层码率 说明 1）默认宽高比16:9 2）编码宽高最后被裁成16整除 3）码率计算可大致参考文件 《码流甜点区域》 例如 "120 3 750 4 950 6 1200 9 1600" 第一层 分辨率 宽640（120*3/9*16）高 360（120*3）； 码率750kbps 第二层 分辨率 宽848（120*4/9*16）高 480（120*4）； 码率950kbps 第三层 分辨率 宽1280（120*6/9*16）高 720（120*6）； 码率1200kbps 第四层 分辨率 宽1920（120*9/9*16）高 1080（120*9）； 码率1600kbps</li>
<li>2、作用 自定义分层参数和码率</li>
<li>3、其他说明 二层或多层配置参数一致 1）无意义，会增编码损耗。 2）不会节约码率，码率取决于设置订阅层的码率；想减少流量，降低分层分配的码率。 如 "120 3 750 3 750 6 1200 9 1600" 第一层和第二层一样 当第一层和第二层都被订阅，实际第一层和第二层都在编码，没必要；可改成"120 3 750 6 1200 9 1600”，都订阅一层。
以上情况设置成”120 3 750 6 1200 9 1600”会比”120 3 750 3 750 6 1200 9 1600" ，节约上行码率和减少编码损毁。 </li>
</ul>

</div>
</div>
<a id="a2ed8db0b776f554d383cddde3330e9be"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2ed8db0b776f554d383cddde3330e9be">&#9670;&nbsp;</a></span>videoRatio</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float com.juphoon.cloud.JCMediaChannel.JoinParam.videoRatio = 1.78f</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>会议画面比例，传入值为宽高比浮点数，默认为 16:9 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cloud/src/main/mediachannel/com/juphoon/cloud/JCMediaChannel.java</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
